import axios from '@/plugins/axios'
import url from './url.js'

let API = {};

// 地图数据
API.allAddress = function() {
	return axios.get(url.AllAddress)
}

API.addressRealtimeAlert = function(address_id, select) {
	return axios.get(url.RealtimeAlert, {
		address_id: address_id,
		select: select
	})
}

API.deviceCountData = function() {
	return axios.get(url.CountData)
}


export default API